using Demo.Res;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class NumberSprite : MonoBehaviour
{
    [SerializeField] Image image;

    public void SetImageNum(int number)
    {
        image.sprite = ResourcesMgr.GetSprite(number);
    }

    public void CreateEffect()
    {
        //image.transform.localScale = Vector3.one;
        //iTween.ScaleTo(image.gameObject, Vector3.one, 0.3f);
        iTween.ScaleFrom(image.gameObject, Vector3.zero, 0.3f);
    }
}
